<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>selector</title>
<meta name="keywords" content="jQuery 1.2 API Reference,Visual jQuery 1.2,jQuery doc,jQuery API,jQuery,jQuery 1.2 API 参考文档中文版,中文版" />
<meta name="description" content="jQuery 1.2 API 文档中文版，提供最新版 jQuery 开发帮助。" />
<link rel="stylesheet" type="text/css" href="../../style/jqueryapi.css" />
<script type="text/javascript" src="../../style/lib/jquery126.js"></script>
 </script>
<script type="text/javascript" src="../../style/jqueryapi.js"></script>
<link rel="shortcut icon" href="../../style/img/favicon.ico" />
</head>
<body>
<div id="topnav">
		<a href="http://www.jQuery.com/" title="jQuery官网" target="_blank" class="topnav">jQuery官网</a>
	<span class="topnav">|</span>
	<a href="http://jquery.org.cn/" title="jQuery中文网站" target="_blank" class="topnav">jQuery中文网站</a>
	<span class="topnav">|</span>
	<a href="http://www.cn-cuckoo.com/" title="1.1版译者" target="_blank" class="topnav">为之漫笔</a>
	<span class="topnav">|</span>
	<a href="http://shawphy.com/" title="1.2版翻译整理者" target="_blank" class="topnav">Shawphy</a>
    <span class="topnav">|</span>
	<a href="http://www.51toria.cn" title="CHM文档制作者:一揪" target="_blank" class="topnav">CHM文档制作者</a> 
	<span class="topnav">|</span>
	<a href="http://dl.getdropbox.com/u/81097/jQueryAPI_CHM.CHM" title="" target="_blank" class="topnav">CHM最新版本下载</a> 
</div>
<hr style="color:#595959;" />

<div class="content">
				<h1>selector</h1>
				<div class="desc"><div>jQuery 1.3新增。返回传给jQuery()的原始选择器。</div> <div class="longdesc">换句话说，就是返回你用什么选择器来找到这个元素的。可以与<span title="Core/context">context</span>一起使用，用于精确检测选择器查询情况。这两个属性对插件开发人员很有用。</div><hr /><div>New in jQuery 1.3 A selector representing selector originally passed to jQuery().</div> <div class="longdesc">Should be used in conjunction with <span title="Core/context">context</span> to determine the exact query used. These two properties are mostly useful to plugin developers.</div></div>
				<h2>返回值</h2>
				<p class="indent">Striing</p>
				<h2>示例</h2>
				<p class="indent">
					确定查询的选择器
				</p>

				<p class="indent"><strong>jQuery 代码:</strong></p>
				<div class="code">
$("ul")<br />
&nbsp;&nbsp;.append("&lt;li&gt;" + $("ul").selector + "&lt;/li&gt;")<br />
&nbsp;&nbsp;.append("&lt;li&gt;" + $("ul li").selector + "&lt;/li&gt;")<br />
&nbsp;&nbsp;.append("&lt;li&gt;" + $("div#foo ul:not([class])").selector + "&lt;/li&gt;");<br />

				</div>
				<p class="indent"><strong>结果:</strong></p>
				<div class="code">
ul<br />
ul li<br />
div#foo ul:not([class])<br />
				</div>

			</div>

</body>
</html>
